Skip to content

Conversation

davezarzycki
Copy link
Contributor

This is really a question in the form of a pull request. Why are we dropping the inner ExtInfo here? This seems like a bug.

@davezarzycki
Copy link
Contributor Author

@swift-ci please test

@slavapestov
Copy link
Contributor

It could be that nothing looks at the extInfo, inner or outer, or the function type we build here.

@slavapestov slavapestov merged commit faad92d into swiftlang:master Dec 15, 2018
@davezarzycki davezarzycki deleted the sil_functype_rebuild_fix branch December 15, 2018 19:52
@jckarter
Copy link
Contributor

Yeah, the way ExtInfo is used to carry state across SIL function type lowering is pretty haphazard and gross in general. It might be worth redoing it so that the ExtInfo in any intermediate function types is just completely ignored, and the SIL ExtInfo gets computed separately.

@davezarzycki
Copy link
Contributor Author

ExtInfo handling in general seems haphazard. It seems really easy to drop ExtInfo bits on the floor when deriving one function type from another. I imagine the idea was/is that most of the time the bits don't matter and they can be copied, but I'm not sure that works well in practice. Are people fond of the design?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants